﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Props.Backend
{
    public class VendorProfileRepository : RepositoryBase<VendorProfile>
    {
        public VendorProfile GetByName(string name)
        {
            return base.Get().Where(x => x.Name == name).FirstOrDefault();
        }

        protected override string CollectionName
        {
            get { return "vendor_profiles"; }
        }
    }
}
